% Below is an example MEX compilation for Windows (and 64-bit version of MATLAB)
% Be sure to change the path to eWriteNames.cpp as appropriate.
mex('-v', '-R2018a', ['-I' 'C:\Program Files (x86)\LabJack\Drivers'], 'D:\src\LJM\Test_Matlab_Mex\LJM_eWriteNames.cpp', ['-L' 'C:\Program Files (x86)\LabJack\Drivers\64bit'], ['-l' 'LabJackM.lib'], '-outdir', 'D:\src\LJM\Test_Matlab_Mex\')

% On Linux you should only need to include the LabJackM.h header at
% /usr/local/include/LabJackM.h and link against our shared library at
% /usr/local/lib/libLabJackM.so . You probably do not need to add the paths for
% the header and shared library since they are in default system include and
% library directories. See the info here: https://labjack.com/pages/support?doc=/software-driver/ljm-users-guide/what-ljm-files-are-installed-on-my-machine/